from Base import message, intersect, SS_VALID
from DRG import MDCF_DRG

def group(record):
  adrg_zd = []
  adrg_zd1 = []
  adrg_ss = ["39.7103","39.7300x004","39.7302","39.7800x001","39.7800x002","39.9000x027"]
  adrg_ss1 = []
  dept_list = []

  if True and record.ssList and record.ssList[0] in adrg_ss:
    message('符合FM1入组条件，匹配规则：主手术匹配')

    if MDCF_DRG.FM19_group(record):
      return 'FM19'
        
    return 'FM1'
  else:
    return ''
    
